package com.buba.server.user;

import com.buba.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author xhh
 * @describe 描述
 * @date 2022/6/16 19:40
 * @ClassName PatientCardService
 */
@FeignClient(value = "service-user")
public interface PatientCardService {
    @RequestMapping(value = "/user/user/patient-card/getBlaceByUserId",method = RequestMethod.POST)
    public R getBlaceByUserId(@RequestParam("userId")Integer userId, @RequestParam("hospitalNumber")String hospitalNumber);
    @RequestMapping(value = "/user/user/patient-card/getIdByhospitalNumber",method = RequestMethod.POST)
    public R getIdByhospitalNumber(@RequestParam("hospitalNumber")String hospitalNumber);
    @RequestMapping(value = "/user/user/patient-card/deductMoney",method = RequestMethod.POST)
    public R deductMoney(@RequestParam("money") BigDecimal money, @RequestParam("hospitalNumber")String hospitalNumber);
}
